﻿using System;
using System.Collections.Generic;
using System.Text;

namespace System.IO
{
    class Class1
    {
        public  static void Main(string[] args)
        {
            DriveInfo[] driveInfo = DriveInfo.GetDrives();
            foreach (DriveInfo d in driveInfo)
            {
                if (d.IsReady)
                {
                    Console.WriteLine("驱动器名称：" + d.Name);
                    Console.WriteLine("驱动器的文件格式" + d.DriveFormat);
                }
            }
        }
    }
}
